# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=guile-sqlite3
pkgver=0.1.3
pkgrel=0
pkgdesc="Guile bindings for SQLite"
url="https://notabug.org/guile-sqlite3/guile-sqlite3"
arch="all"
license="LGPL-3.0-or-later"
depends="guile sqlite-dev"
makedepends="automake autoconf guile-dev"
options="!strip" # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907061
source="$pkgname-$pkgver.tar.gz::https://notabug.org/guile-sqlite3/guile-sqlite3/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname"

prepare() {
	default_prepare
	autoreconf -vfi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
1abc6646c775b4bf61d7f9f8a75d8ba4da2e67c9d85cd6a29c432acdb0ed68fcb6e7073693d06787d83c3ceb84bd512e71f53d18afeb0063e1cfc296b6873f79  guile-sqlite3-0.1.3.tar.gz
"
